// K&R book. p30.

#include <stdio.h>

int strlenx(char s[]);

int main()
{
    char line[] = "hello, world!";

    printf("length = %d\n", strlenx(line));

    return 0;
}

int strlenx(char s[])
{
    int i;

    for (i = 0; s[i] != '\0'; i++)
        ;
    return i;
}